package com.sq.partner.manager.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.sq.partner.manager.dao.IGatewayAgencyChannelDao;
import com.sq.partner.manager.mybatis.model.GatewayAgencyChannel;
/**
 * 
 * @author zzguo
 *
 */
@Repository
public class IGatewayAgencyChannelDaoImpl extends BaseDaoImpl implements IGatewayAgencyChannelDao {

	@Override
	public boolean addPrivilegesToOneAgency(GatewayAgencyChannel gac) throws Exception {
		return this.add("insertGatewayAgencyChannel", gac);
	}

	@Override
	public boolean delPrivilegesByAgencyCode(GatewayAgencyChannel gac) throws Exception {
		return this.delete("delGatewayAgencyChannelByAgencyCode", gac.getAgencyCode());
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<GatewayAgencyChannel> queryPrivilegesByAgencyCode(GatewayAgencyChannel gac) throws Exception {
		return this.queryList("queryGatewayAgencyChannelByMap", gac);
	}
	

}
